package com.eati.cm.serv;

import com.eati.cm.serv.dispacher.LoginDisp;
import com.eati.cm.auth.LoginOnlineToken;
import com.eati.cm.auth.ThirdpartyAuthCBToken;
import com.eati.cm.model.User;
import com.eati.cm.model.readonly.useless_for_fe.LoginPlatform;
import org.springframework.security.core.userdetails.UserDetailsService;

import javax.servlet.http.HttpServletRequest;

public interface ILoginServ extends UserDetailsService {

    String getThirdPartyAccountIdByToken(String token);

    LoginDisp getLoginDispByThirdPartyName(String thirdPartyName);

    void logout(User usr);

	String getThirdpartyLoginPlatformName(HttpServletRequest hr);

	LoginOnlineToken login(ThirdpartyAuthCBToken token);
}
